.class public final LPkUwx/Axwse/EwidO/WpXGS;
.super Ljava/lang/Object;

# interfaces
.implements LPkUwx/KtgSK;


# instance fields
.field private final jbaQi:Z


# direct methods
.method public constructor <init>(Z)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-boolean p1, p0, LPkUwx/Axwse/EwidO/WpXGS;->jbaQi:Z

    return-void
.end method


# virtual methods
.method public nVhfY(LPkUwx/yHGlH;)LPkUwx/kHRtU;
    .locals 8

    move-object v0, p1

    check-cast v0, LPkUwx/Axwse/EwidO/kqYXo;

    invoke-virtual {v0}, LPkUwx/Axwse/EwidO/kqYXo;->xFKtO()LPkUwx/Axwse/EwidO/ySQaV;

    move-result-object v1

    move-object v0, p1

    check-cast v0, LPkUwx/Axwse/EwidO/kqYXo;

    invoke-virtual {v0}, LPkUwx/Axwse/EwidO/kqYXo;->MtvtD()LPkUwx/Axwse/IPQgl/UdqxG;

    move-result-object v2

    invoke-interface {p1}, LPkUwx/yHGlH;->nMtaf()LPkUwx/tQIEa;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-interface {v1, v0}, LPkUwx/Axwse/EwidO/ySQaV;->JFUtS(LPkUwx/tQIEa;)V

    invoke-virtual {v0}, LPkUwx/tQIEa;->fsbPw()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, LPkUwx/Axwse/EwidO/erNhg;->cCYpx(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-virtual {v0}, LPkUwx/tQIEa;->FlRcs()LPkUwx/SZZoc;

    move-result-object v3

    if-eqz v3, :cond_0

    invoke-virtual {v0}, LPkUwx/tQIEa;->FlRcs()LPkUwx/SZZoc;

    move-result-object v3

    invoke-virtual {v3}, LPkUwx/SZZoc;->pAovp()J

    move-result-wide v6

    invoke-interface {v1, v0, v6, v7}, LPkUwx/Axwse/EwidO/ySQaV;->GLAtr(LPkUwx/tQIEa;J)LwFZra/NYfbw;

    move-result-object v3

    invoke-static {v3}, LwFZra/LLCTB;->SQKOi(LwFZra/NYfbw;)LwFZra/AAVAr;

    move-result-object v3

    invoke-virtual {v0}, LPkUwx/tQIEa;->FlRcs()LPkUwx/SZZoc;

    move-result-object v6

    invoke-virtual {v6, v3}, LPkUwx/SZZoc;->xPpTE(LwFZra/AAVAr;)V

    invoke-interface {v3}, LwFZra/AAVAr;->close()V

    :cond_0
    invoke-interface {v1}, LPkUwx/Axwse/EwidO/ySQaV;->MimrM()V

    invoke-interface {v1}, LPkUwx/Axwse/EwidO/ySQaV;->NWutC()LPkUwx/acCnD;

    move-result-object v3

    invoke-virtual {v3, v0}, LPkUwx/acCnD;->jzFKY(LPkUwx/tQIEa;)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v2}, LPkUwx/Axwse/IPQgl/UdqxG;->DPOhI()LPkUwx/Axwse/IPQgl/VYigH;

    move-result-object v3

    invoke-virtual {v3}, LPkUwx/Axwse/IPQgl/VYigH;->nEmXL()LPkUwx/iAqOC;

    move-result-object v3

    invoke-virtual {v0, v3}, LPkUwx/acCnD;->koMMn(LPkUwx/iAqOC;)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v0, v4, v5}, LPkUwx/acCnD;->ZjBKK(J)LPkUwx/acCnD;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, LPkUwx/acCnD;->HJhXD(J)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/acCnD;->DWSCU()LPkUwx/kHRtU;

    move-result-object v0

    iget-boolean v3, p0, LPkUwx/Axwse/EwidO/WpXGS;->jbaQi:Z

    if-eqz v3, :cond_1

    invoke-virtual {v0}, LPkUwx/kHRtU;->Dhuat()I

    move-result v3

    const/16 v4, 0x65

    if-eq v3, v4, :cond_2

    :cond_1
    invoke-virtual {v0}, LPkUwx/kHRtU;->YsCmv()LPkUwx/acCnD;

    move-result-object v3

    invoke-interface {v1, v0}, LPkUwx/Axwse/EwidO/ySQaV;->XBtEk(LPkUwx/kHRtU;)LPkUwx/wkoHv;

    move-result-object v0

    invoke-virtual {v3, v0}, LPkUwx/acCnD;->EyhHl(LPkUwx/wkoHv;)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/acCnD;->DWSCU()LPkUwx/kHRtU;

    move-result-object v0

    :cond_2
    const-string v1, "close"

    invoke-virtual {v0}, LPkUwx/kHRtU;->UhwFd()LPkUwx/tQIEa;

    move-result-object v3

    const-string v4, "Connection"

    invoke-virtual {v3, v4}, LPkUwx/tQIEa;->vwibQ(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_3

    const-string v1, "close"

    const-string v3, "Connection"

    invoke-virtual {v0, v3}, LPkUwx/kHRtU;->CXcBU(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    :cond_3
    invoke-virtual {v2}, LPkUwx/Axwse/IPQgl/UdqxG;->awqjH()V

    :cond_4
    invoke-virtual {v0}, LPkUwx/kHRtU;->Dhuat()I

    move-result v1

    const/16 v2, 0xcc

    if-eq v1, v2, :cond_5

    const/16 v2, 0xcd

    if-ne v1, v2, :cond_6

    :cond_5
    invoke-virtual {v0}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v2

    invoke-virtual {v2}, LPkUwx/wkoHv;->VoZlH()J

    move-result-wide v2

    const-wide/16 v4, 0x0

    cmp-long v2, v2, v4

    if-lez v2, :cond_6

    new-instance v2, Ljava/net/ProtocolException;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "HTTP "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, " had non-zero Content-Length: "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/wkoHv;->VoZlH()J

    move-result-wide v4

    invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V

    throw v2

    :cond_6
    return-object v0
.end method
